﻿/******************************************************   
创建者: 梁家健
创建时间: 2017-05-04
修改:
修改时间: 
功能: 企划唯一码报表实体
 ******************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.nm.Attributes;

namespace PlanAPI.model
{
    public class PLOnlyCodeModel
    {
        /// <summary>
        /// 企划唯一码报表实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-05-04
        public class CreatModel : NeceModel
        {
            [ParamDescription("公司代码")]
            public string CompanyID { get; set; }
            [ParamDescription("选择轮次")]
            public long? ChooseNum { get; set; }
            [ParamDescription("拆分标记")]
            public long? CutFlag { get; set; }
            [ParamDescription("选择时间")]
            public DateTime? ChooseTime { get; set; }
            [ParamDescription("价格带")]
            public string PriceName { get; set; }
            [ParamDescription("读取时间")]
            public DateTime? LoadTime { get; set; }
            [ParamDescription("修改时间")]
            public DateTime? EtlDate { get; set; }
        }

        /// <summary>
        /// 企划唯一码报表主要实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-05-04
        public class NeceModel: CodeModel
        {
            [ParamDescription("零售分区")]
            public string ParentAreaID { get; set; }
            [ParamDescription("店铺ID")]
            public string ShopID { get; set; }
            [ParamDescription("店铺")]
            public string ShopName { get; set; }
            [ParamDescription("类别")]
            public string KindID { get; set; }
            [ParamDescription("系列")]
            public string SeriesID { get; set; }
            [ParamDescription("商品层")]
            public string MaterialProperty { get; set; }
            [ParamDescription("品类")]
            public string ModelID { get; set; }
            [ParamDescription("深度")]
            public long? DeepQty { get; set; }
        }

        /// <summary>
        /// 企划唯一码报表显示实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-05-04
        public class ListModel : NeceModel
        {
            [ParamDescription("零售分区")]
            public string ParentAreaName { get; set; }
            [ParamDescription("类别")]
            public string KindName { get; set; }
            [ParamDescription("系列")]
            public string SeriesName { get; set; }
            [ParamDescription("品类")]
            public string ModelName { get; set; }
            [ParamDescription("小品类")]
            public string ItemName { get; set; }

            public int count { get; set; }

            public IList<IGrouping<string, ListModel>> list { get; set; }
        }

        /// <summary>
        /// 唯一码主要实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-05-05
        public class CodeModel
        {
            [ParamDescription("年份")]
            public long? Yearv { get; set; }
            [ParamDescription("月份")]
            public long? Monthv { get; set; }
            [ParamDescription("周")]
            public long? Weekv { get; set; }
            [ParamDescription("小品类")]
            public string ItemID { get; set; }
            [ParamDescription("唯一码")]
            public string OnlyCode { get; set; }
            [ParamDescription("选择标记")]
            public long? ChooseFlag { get; set; }
        }

        /// <summary>
        /// 唯一码显示实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-05-05
        public class ShowModel: CodeModel
        {
            [ParamDescription("小品类")]
            public string ItemName { get; set; }
            public int count { get; set; }

            public IList<ShowModel> list { get; set; }
        }
    }
}
